<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<title>簇商品管理</title>
		<link rel="stylesheet" href="css/reset.css" />
        <link rel="stylesheet" href="css/platform.css" />
        <link rel="stylesheet" href="css/table.css" />
        <link rel="stylesheet" href="js/magicsuggest-min.css" />
        <link rel="stylesheet" href="css/property.css" />
        
        <style>
        	.u-popup .asTableCell .alert .container.imp-cluster {
        		min-height: inherit;
        	}
        	.u-popup .asTableCell .alert .container p {
        		font-size: 16px;
        	}
        </style>
	</head>

	<body>
        <div class="header">
            <div class="u-title">簇商品管理</div>
        </div>
        <div class="cluster-manage" ms-controller="mainController">
            <!-- <div class="u-multiform search-param">
                <div class="column">
                    <div class="cell">
                        <label>商品：</label>
                        <div class="cnt-box">
                            <input type="text" class="u-ipt" ms-duplex="commInfo" placeholder="商品编码/名称" />
                        </div>
                    </div>
                    <div class="cell">
							<button class="u-btn small" ms-click="search">查询</button>
                    </div>
                </div>
            </div> -->
            <div class="export">
<!-- 	            <button class="u-btn small" ms-class="dis:dataLen==0" ms-click="exportPop()">导出</button> -->
				<button class="u-btn small" ms-class="dis:dataLen==0" ms-click="exportPop()">导出</button>
	            <button class="u-btn small batch-exp" ms-click="importXls()">批量导入</button>        
            </div>
            <div id="exptTable" ms-controller="exptTable"></div>
            <script type="avalon" id="tableSaleExpt">
                <div class="tableWrapper">
                    <table class="table">
                        <thead>
                            <tr>
								<th>商品系列名称</th>
								<th>商品组代码</th>
								<th>商品组名称</th>
								<th>品牌代码</th>
								<th>品牌名称</th>
								<th>商品编码</th>
								<th>商品名称</th>

                            </tr>
                        </thead>
                        <tbody>
                            <tr ms-repeat-row="sources">
								<td>{{row.comRangeName}}</td>
								<td>{{row.comGroupCode}}</td>
								<td>{{row.comGroupName}}</td>
								<td>{{row.brand4code}}</td>
								<td>{{row.brandName}}</td>
								<td>{{row.commCode}}</td>
								<td>{{row.commName | truncate(20,"...")}}</td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="7">
                                    <div class="pager">
                                        <div class="first-page" ms-click="firstpage" ms-class={{firstpagestyle}}>首页</div>
                                        <div class="pre-page" ms-click="prepage" ms-class={{prepagestyle}}>上一页</div>
                                        <div class="current-page">
                                            第<input class="current-page-num" type="text" ms-duplex="currentpage" ms-input="jumppage" />页
                                            <span class="totalpage">共 {{totalpage}} 页</span>
                                        </div>
                                        <div class="next-page" ms-click="nextpage" ms-class={{nextpagestyle}}>下一页</div>
                                        <div class="last-page" ms-click="lastpage" ms-class={{lastpagestyle}}>尾页</div>
                                        <div class="messageinfo">{{startrow}}-{{endrow}} 共{{total}}条</div>
                                    </div>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </div>
            </script>
        </div>
        <div class="loadData"></div>
        <!--弹框区域-->
        <div ms-controller="popController">
            <div class="u-popup" id="popup_confirm">
                <div class="bg"></div>
                <div class="asTable">
                    <div class="asTableCell">
                        <div class="asCell alert">
                            <a href="javascript:;" class="close btn-close">×</a>
                            <p class="title">提示</p>
                            <div class="container">
                                <div class="warning"></div>
                                <p ms-if="confirmType=='del'">确定要删除该商品吗？</p>
                            </div>
                            <div class="btn-box">
                                <button class="u-btn" ms-click="confirmSure()">确定</button>
                                <button class="u-btn gray btn-close">取消</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="u-popup" id="popup_tips">
                <div class="bg"></div>
                <div class="asTable">
                    <div class="asTableCell">
                        <div class="asCell alert">
                            <a href="javascript:;" class="close btn-close">×</a>
                            <p class="title">提示</p>
                            <div class="container">
                                <div class="error"></div>
                                <p></p>
                            </div>
                            <div class="btn-box">
                                <button class="u-btn btn-close">确定</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
             <div class="u-popup export-pop" id="popup_cnt">
                <div class="bg"></div>
                <div class="asTable-box">
                    <div class="asTable">
                        <div class="asTableCell">
                            <div class="asCell dialog">
                                <a href="javascript:;" class="close btn-close">×</a>
                                <p class="title">选择导出</p>
                                <div class="container">
                                    <div ms-repeat-number="exportCountList" class="e-number" ms-class="sel:$index==0" ms-click="selCount()">
                                        <img src="css/images/export-icon.png">
                                        <p>{{number}}</p>
                                        <div class="sel-icon"></div>
                                    </div>
                                </div>
                                <div class="btn-box">
                                    <button class="u-btn" ms-click="exportList()">确定</button>
                                    <button class="u-btn gray btn-close">取消</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>  
            <div class="u-popup" id="popup_import">
                <div class="bg"></div>
                <div class="asTable">
                    <div class="asTableCell">
                        <div class="asCell alert import">
                            <a href="javascript:;" class="close btn-close">×</a>
                            <p class="title">选择导入文件</p>
                            <div class="container imp-cluster">
                                <form id="form_file" enctype="multipart/form-data" autocomplete="off" method="post">
                                    <input id="file" type="file" name="file" accept=".xls,.xlsx" id="upladFile" />
                                </form>
                                <div class="words-tips">提示：支持同一天信息批量导入，数据将累计入库。隔天导入的信息将覆盖所有历史数据</div>
                            </div>
                            
                            <div class="btn-box">
                                <button class="u-btn" ms-click="uploadFile">确定</button>
                                <button class="u-btn btn-close gray">取消</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="js/jquery.min.js"></script>
        <script src="js/avalon.shim.sn.js"></script>
        <script src="js/swift-ui-table-1.1.js"></script>
        <script src="js/magicsuggest-min.js"></script>
        <script src="js/platform.js"></script>
        <script src="js/DataInterface/DataInterface.js"></script>
        <script src="js/cluster-manage.js"></script>
    </body>

</html>
